package com.common.jump;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.orangelife.mobile.confirmOrder.biz.MerchantOrderListHelper;
import com.orangelife.mobile.voucher.activity.VoucherListSelectActivity;
import com.orangelife.mobile.voucher.biz.VoucherHttpBiz;

/**
 * 抵用券跳转类
 *
 * Created by wgf on 2016/7/22.
 * @since v4.0.1
 */
public class VoucherJumper {

    /** 跳转到抵用券列表，从单个商户 */
    public static void jumpToVoucherListWithService(Activity activity, String totalCost) {
        Bundle bundle = new Bundle();
        bundle.putInt("type", VoucherHttpBiz.TYPE_REPAIR);
        bundle.putString(MerchantOrderListHelper.TOTAL_COST, totalCost);
        Intent intent = new Intent(activity, VoucherListSelectActivity.class);
        intent.putExtras(bundle);
        activity.startActivityForResult(intent, 2);
//        Bundle bundle = new Bundle();
        //洗车type = 8
//        bundle.putInt("type", 8);
//        IntentHelper.getInstances().bundleWithBundleForResult(WashCarActivity.this, VoucherListSelectActivity.class, bundle, 1);
    }

}
